<%@ page language="java" import="java.util.*" contentType="text/html; charset=utf-8" pageEncoding="utf-8"%>
<%@include file="/common/taglibs.jsp" %>
<div class="left-side sticky-left-side">
    <div class="logo">
        <a href="javascript:;"><img src="../../../resources/src/images/vchello_saas_logo.png" width="auto" height="60" alt=""></a> 
    </div>
    <div class="logo-icon text-center">
        <a href="javascript:;"><img src="/resources/src/images/min_logo.jpg" alt=""></a> 
    </div>
     <!--sidebar nav start-->
    <ul class="nav nav-pills nav-stacked custom-nav">
    	<c:if test="${user.type==1 }">
	    	<li class="menu-list" id="userHeader"><a href="/user/list"><i class="iconfont icon-user1" style="font-size:18px;"></i> <span>用户管理</span> <b class="badge"></b></a></li>
    	</c:if>
        <li class="menu-list" id="projectHeader"><a href="/projects/list"><i class="iconfont icon-xiangmuguanli"></i> <span>项目管理</span></a></li>
        <li class="menu-list" id="fileHeader"><a href="/folder/list"><i class="iconfont icon-wenjian1"></i> <span>文件管理</span> <b class="badge"></b></a></li>
        <li class="menu-list" id="messageHeader">
	        <a href="/message/receiveList">
		        <i class="iconfont icon-xiaoxizhongxin message-count">
		        	<c:if test="${MESSAGE_COUNT!=0 && MESSAGE_COUNT!=null}">
		        		<small>${MESSAGE_COUNT }</small>
		        	</c:if>
		        </i> 
		        <span>消息中心<c:if test="${MESSAGE_COUNT!=0 && MESSAGE_COUNT!=null}">(${MESSAGE_COUNT })</c:if></span>
	        </a>
        </li>
        <li class="menu-list" id="settingHeader"><a href="/user/accountSettings"><i class="iconfont icon-setting-copy" style="font-size:18px;"></i> <span>账号设置</span></a></li>
        <li class="menu-list fb-btn"><a href="/feedback/saveFeedback"><i class="iconfont icon-ic_feedback_px"></i> <span>反馈</span></a></li>
    </ul>
</div>
<input type="hidden" id="pageHeader" value='<%=request.getParameter("pageHeader")%>'>
<script>
    var pageHeaderID = document.getElementById('pageHeader').value;
    var addClassID = document.getElementById(pageHeaderID);
    if(addClassID.className == ""){
        addClassID.className = 'nav-active';  
    }else{
        addClassID.className += " "+"nav-active"; 
    }
</script>

